package edu.ustb.railwayticket.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
// @ConfigurationProperties(prefix = "nero.asuka")
public class ConfigProperties {

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     *配置类
     */
    private String name;
    private Integer age;
    private String sayhello;


    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSayhello() {
        return sayhello;
    }

    public void setSayhello(String sayhello) {
        this.sayhello = sayhello;
    }

    @Override
    public String toString() {
        return "ConfigProperties [name=" + name + ", age=" + age + ", sayhello=" + sayhello + "]";
    }


}
